package com.xuanheng.utils.http.async;

import java.util.List;
import java.util.Map;

public interface IResponseHandler {

	public void onStart();

	public void onFinished();

	public void onTimeout();

	public void onCancelled();

	public void onProgress(int current, int total);

	public void onSuccess(int statusCode, Map<String, List<String>> headers,
                          String response);

	public void onFailure(int statusCode, Map<String, List<String>> headers,
                          String responseString, Throwable throwable);
}
